package com.gcd.gym.mapper;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gcd.gym.model.Admin;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AdminMapper extends BaseMapper<Admin> {

    default Page<Admin> findAdmin(Page<Admin> page,Admin admin) {
        LambdaQueryWrapper<Admin> queryWrapper= Wrappers.lambdaQuery(admin);
        return selectPage(page,queryWrapper);
    }
}
